import request from '@/utils/request'


/**
 * 阅卷详情
 */
export const markingExamDetail = (data) => {
    return request({
        url: '/markingexam/' + data.id + '/',
        method: 'get',
        data: data,

    })
}

/**
 * 问答题打分
 */
export const updateTextAnswerMark = (id, data) => {
        return request({
            url: '/TextAnswerMark/' + id + '/',
            method: 'put',
            data: data
        })
    }
    /**
     * 阅卷详情
     */
export const TextAnswerMark = (query) => {
        return request({
            url: '/TextAnswerMark/',
            method: 'get',
            params: query

        })
    }
    /**
     * 阅卷
     */
export const markingExam = (query) => {
        return request({
            url: '/markingexam/',
            method: 'get',
            params: query

        })
    }
    /**
     * 阅卷状态修改
     */
export const updateMarkingExam = (id) => {
    return request({
        url: '/markingexam/' + id + '/',
        method: 'put',
        data: { is_marked: true },

    })
}